VR10SByToAsc

V = Variables

R = Reading functions

SIGNED BYTE —→ ASCII

The VR10SByToAsc function converts a Signed Bytes variable type (byte with sign) in an Ascii variable type.

IMPLEMENTATION

VR10SByToAsc (value, index, array, errcode)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN GLOBAL value B Data value to convert
IN GLOBAL index L Index of the array element to start the “deposit” of the converted data
OUT ARRGBL array B Array containing the converted data (must be declared at least “index” elements)
OUT GLOBAL errcode F Variable that indicates a possible error on the function

Errcode

Una volta richiamata la funzione, 'errcode' può assumere determinati valori, il significato di tali valori è riassunto di seguito:
0: Nessun errore

Esempio

Trasforma il valore 12 (signed byte) in un valore ASCII

value = -12
index = 1
 
VR10SByToAsc (value, index, array, errcode)
 
;Sull'array si troverà :
; array[1] = 48
; array[2] = 67

Note